﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example05.aspx.cs" Inherits="Chapter14.Example05" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 14-5 使用 output 元素</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
    <link rel="shortcut icon" href="Example01.Favicon.ico" type="image/x-ico" />
</head>
<body>
    <form action="Result.aspx" oninput="res.value = quit.valueAsNumber * price.valueAsNumber">
        <fieldset>
            <legend>Price Calculator</legend>
            <input type="number" placeholder="Quantity" id="quant" name="quant" />
            X 
            <input type="number" placeholder="Price" id="price" name="price" />
            = 
            <output for="quant price" name="res" />
        </fieldset>
    </form>
</body>
</html>
